﻿using DemoClient.ServerInfoServiceReference;
using ServerUtils;
using System.Threading.Tasks;

namespace DemoClient
{
    public class ServerInfoServiceClientProxy : WCFClient<ServerInfoServiceClient>
    {
        public GetServerInfoResult GetServerInfo(string parameter)
        {
            return this.Execute<GetServerInfoResult>((client) => { return client.GetServerInfo(parameter); });
        }

        public async Task<GetServerInfoResult> GetServerInfoAsync(string parameter)
        {
            return await this.ExecuteAsync<GetServerInfoResult>((client) => { return client.GetServerInfoAsync(parameter); });
        }
    }
}
